Don't revert the mouse cursor to the built-in one when the user holds the
authorCody Russell <bratsche@gnome.org>
Sun, 10 Jun 2007 16:13:09 +0000 (16:13 +0000)
committerCody Russell <bratsche@src.gnome.org>
Sun, 10 Jun 2007 16:13:09 +0000 (16:13 +0000)
2007-06-10  Cody Russell  <bratsche@gnome.org>

        * gdk/win32/gdkevents-win32.c (gdk_pointer_grab):
        Don't revert the mouse cursor to the built-in one when
        the user holds the mouse button down. (#445284, Tor Lillqvist)

svn path=/trunk/; revision=18093

ChangeLog
gdk/win32/gdkevents-win32.c

index 5b3383edcac6923e62681110e3b01f4cacd612c9..e0a95bbedbb534d3540e84d1b36f2317f68abfde 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-06-10  Cody Russell  <bratsche@gnome.org>
+
+       * gdk/win32/gdkevents-win32.c (gdk_pointer_grab):
+       Don't revert the mouse cursor to the built-in one when
+       the user holds the mouse button down. (#445284, Tor Lillqvist)
+
 2007-06-10  Emmanuele Bassi  <ebassi@gnome.org>
 
        * gtk/gtkscalebutton.[ch]: Fix some coding style bits.
index 5059a88993c3d63c097b43f0a5e1040f84d2e6bc..9364d15514f45c7fde51e39779f5403d8a944290 100644 (file)
@@ -534,8 +534,6 @@ gdk_pointer_grab (GdkWindow    *window,
   
   if (return_val == GDK_GRAB_SUCCESS)
     {
-      GdkWindowImplWin32 *impl = GDK_WINDOW_IMPL_WIN32 (((GdkWindowObject *) window)->impl);
-
       if (p_grab_window != NULL && p_grab_window != window)
        generate_grab_broken_event (p_grab_window, FALSE, window);
       
@@ -552,10 +550,6 @@ gdk_pointer_grab (GdkWindow    *window,
 
       if (p_grab_cursor != NULL)
        SetCursor (p_grab_cursor);
-      else if (impl->hcursor != NULL)
-       SetCursor (impl->hcursor);
-      else
-       SetCursor (LoadCursor (NULL, IDC_ARROW));
 
       if (confine_to != NULL)
        {